<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>采购订单表头</title>
    <style>
  .ui-button {
  	  display: inline-block;
	  padding: 2px 2px;
	  margin-bottom: 0;
	  font-size: 8px;
	  font-weight: normal;
	  line-height: 1.42857143;
	  text-align: center;
	  white-space: nowrap;
	  vertical-align: middle;
	  -ms-touch-action: manipulation;
      touch-action: manipulation;
	  cursor: pointer;
	  -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
	  background-image: none;
	  border: 1px solid transparent;
	  border-radius: 4px;
  }
  </style>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  $(document).ready(function(){
	$('#tt').tabs({
	   onSelect:function(title){
	       $('#tt .panel-body').css('width','auto');
		}
	});
	$(".tabs-wrap").css('width','100%');
  });
 </script>
 </head>
 <body style="overflow-x: hidden;">
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="tMmPoHeadController.do?doAdd" >
					<input id="id" name="id" type="hidden" value="${tMmPoHeadPage.id }"/>
	<table cellpadding="0" cellspacing="1" class="formtable">
		<tr>
			<td align="right">
				<label class="Validform_label">采购订单号:</label>
			</td>
			<td class="value">
		     	 <input id="docnum" name="docnum" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">采购订单号</label>
			</td>
			<td align="right">
				<label class="Validform_label">供应商编码:</label>
			</td>
			<td class="value">
				<input id="vendorcode" name="vendorcode" type="text" style="width: 150px" class="searchbox-inputtext"  ignore="ignore"  onclick="popupClick(this,'vendorcode,vendorname','vendorcode,vendorname','pop_vendor')"/>			 
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">供应商编码</label>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="Validform_label">供应商名称:</label>
			</td>
			<td class="value">
		     	 <input id="vendorname" name="vendorname" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">供应商名称</label>
			</td>
			<td align="right">
				<label class="Validform_label">订单日期:</label>
			</td>
			<td class="value">
					  <input id="docdate" name="docdate" type="text" style="width: 150px"  class="Wdate" onClick="WdatePicker()"  ignore="ignore"  />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">订单日期</label>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="Validform_label">备注:</label>
			</td>
			<td class="value">
		     	 <input id="text" name="text" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">备注</label>
			</td>
			<td align="right">
				<label class="Validform_label">货币:</label>
			</td>
			<td class="value">
					  <t:dictSelect field="hbCode" type="list"   dictTable="t_erp_huobi" dictField="hb_code" dictText="hb_name"  defaultVal="${tMmPoHeadPage.hbCode}" hasLabel="false"  title="货币" ></t:dictSelect>     
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">货币</label>
			</td>
		</tr>
		<%--<tr>--%>
			<%--<td align="right">--%>
				<%--<label class="Validform_label">本币总金额:</label>--%>
			<%--</td>--%>
			<%--<td class="value">--%>
		     	 <%--<input id="bbZongjine" name="bbZongjine" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />--%>
				<%--<span class="Validform_checktip"></span>--%>
				<%--<label class="Validform_label" style="display: none;">本币总金额</label>--%>
			<%--</td>--%>
			<%--<td align="right">--%>
				<%--<label class="Validform_label">外币总金额:</label>--%>
			<%--</td>--%>
			<%--<td class="value">--%>
		     	 <%--<input id="wbZongjine" name="wbZongjine" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />--%>
				<%--<span class="Validform_checktip"></span>--%>
				<%--<label class="Validform_label" style="display: none;">外币总金额</label>--%>
			<%--</td>--%>
		<%--</tr>--%>
		<tr>
			<td align="right">
				<label class="Validform_label">货主:</label>
			</td>
			<td class="value">
		     	 <input id="poBz1" name="poBz1" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">货主</label>
			</td>
			<td align="right">
				<label class="Validform_label">仓库:</label>
			</td>
			<td class="value">
		     	 <input id="poBz2" name="poBz2" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">仓库</label>
			</td>
		</tr>
		<%--<tr>--%>
			<%--<td align="right">--%>
				<%--<label class="Validform_label">备注3:</label>--%>
			<%--</td>--%>
			<%--<td class="value">--%>
		     	 <%--<input id="poBz3" name="poBz3" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />--%>
				<%--<span class="Validform_checktip"></span>--%>
				<%--<label class="Validform_label" style="display: none;">备注3</label>--%>
			<%--</td>--%>
			<%--<td align="right">--%>
				<%--<label class="Validform_label">备注4:</label>--%>
			<%--</td>--%>
			<%--<td class="value">--%>
		     	 <%--<input id="poBz4" name="poBz4" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />--%>
				<%--<span class="Validform_checktip"></span>--%>
				<%--<label class="Validform_label" style="display: none;">备注4</label>--%>
			<%--</td>--%>
		<%--</tr>--%>
		<%--<tr>--%>
			<%--<td align="right">--%>
				<%--<label class="Validform_label">备注5:</label>--%>
			<%--</td>--%>
			<%--<td class="value">--%>
		     	 <%--<input id="poBz5" name="poBz5" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />--%>
				<%--<span class="Validform_checktip"></span>--%>
				<%--<label class="Validform_label" style="display: none;">备注5</label>--%>
			<%--</td>--%>
			<%--<td align="right">--%>
				<%--<label class="Validform_label">备注6:</label>--%>
			<%--</td>--%>
			<%--<td class="value">--%>
		     	 <%--<input id="poBz6" name="poBz6" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />--%>
				<%--<span class="Validform_checktip"></span>--%>
				<%--<label class="Validform_label" style="display: none;">备注6</label>--%>
			<%--</td>--%>
		<%--</tr>--%>
	
	</table>
			<div style="width: auto;height: 200px;">
				<%-- 增加一个div，用于调节页面大小，否则默认太小 --%>
				<div style="width:800px;height:1px;"></div>
				<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
				 <t:tab href="tMmPoHeadController.do?tMmPoItemList&id=${tMmPoHeadPage.id}" icon="icon-search" title="采购项目" id="tMmPoItem"></t:tab>
				</t:tabs>
			</div>
			</t:formvalid>
			<!-- 添加 附表明细 模版 -->
	<table style="display:none">
	<tbody id="add_tMmPoItem_table_template">
		<tr>
			 <td align="center"><div style="width: 25px;" name="xh"></div></td>
			 <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
				  <td align="left">
					  		<input name="tMmPoItemList[#index#].matcode" name="tMmPoItemList[#index#].matcode" type="text" style="width: 150px" class="searchbox-inputtext"  ignore="ignore"  onclick="popupClick(this,'matcode,matname,unit','matcode,matname,unit','pop_material')"/>
					  <label class="Validform_label" style="display: none;">商品编码</label>
				  </td>
				  <td align="left">
					  	<input name="tMmPoItemList[#index#].matname" maxlength="100" type="text" class="inputxt"  style="width:420px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">商品名称</label>
				  </td>
				  <td align="left">
					  	<input name="tMmPoItemList[#index#].quantity" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">数量</label>
				  </td>
				  <td align="left">
					  	<input name="tMmPoItemList[#index#].unit" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">单位</label>
				  </td>
				  <td align="left">
					  	<input name="tMmPoItemList[#index#].price" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">单价</label>
				  </td>
				  <td align="left">
							<input name="tMmPoItemList[#index#].deliverydate" maxlength="32" type="text" class="Wdate" onClick="WdatePicker()"  style="width:120px;" ignore="ignore" />
					  <label class="Validform_label" style="display: none;">交货日期</label>
				  </td>
				  <%--<td align="left">--%>
					  	<%--<input name="tMmPoItemList[#index#].text" maxlength="100" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />--%>
					  <%--<label class="Validform_label" style="display: none;">备注</label>--%>
				  <%--</td>--%>
				  <%--<td align="left">--%>
					  	<%--<input name="tMmPoItemList[#index#].prdocnum" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />--%>
					  <%--<label class="Validform_label" style="display: none;">采购申请</label>--%>
				  <%--</td>--%>
				  <%--<td align="left">--%>
					  	<%--<input name="tMmPoItemList[#index#].openqty" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />--%>
					  <%--<label class="Validform_label" style="display: none;">未清数量</label>--%>
				  <%--</td>--%>
				  <%--<td align="left">--%>
					  	<%--<input name="tMmPoItemList[#index#].wbJine" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />--%>
					  <%--<label class="Validform_label" style="display: none;">外币单价</label>--%>
				  <%--</td>--%>
				  <%--<td align="left">--%>
					  	<%--<input name="tMmPoItemList[#index#].poiBz1" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />--%>
					  <%--<label class="Validform_label" style="display: none;">备注1</label>--%>
				  <%--</td>--%>
				  <%--<td align="left">--%>
					  	<%--<input name="tMmPoItemList[#index#].poiBz2" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />--%>
					  <%--<label class="Validform_label" style="display: none;">备注2</label>--%>
				  <%--</td>--%>
				  <%--<td align="left">--%>
					  	<%--<input name="tMmPoItemList[#index#].poiBz3" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />--%>
					  <%--<label class="Validform_label" style="display: none;">备注3</label>--%>
				  <%--</td>--%>
				  <%--<td align="left">--%>
					  	<%--<input name="tMmPoItemList[#index#].poiBz4" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />--%>
					  <%--<label class="Validform_label" style="display: none;">备注4</label>--%>
				  <%--</td>--%>
			</tr>
		 </tbody>
		</table>
 </body>
 <script src = "webpage/com/erp/mm/tMmPoHead.js"></script>
	